<?php
class Resource_Model extends CI_Model {	
	function __construct(){
		parent::__construct();
		$this->load->database();
	}
	
	function insertResource($resource){

		$this->db->insert('resource', $resource); 
//		echo $this->db->affected_rows();
	}

}

?>
